<template>
  <div>
    <img alt="Vue logo" src="@/assets/logo.png" />
    <Charts></Charts>
  </div> 
  <el-button @click="nextPage">子组件</el-button>
</template>

<script lang="ts">
import { defineComponent } from 'vue'
import Charts from '@/views/charts.vue'
import router from '@/router'
export default defineComponent({
  name: 'App',
  components: {
    Charts
  },
  setup() {
    function nextPage () {
      console.log('router')
      router.push('/next')
    }
    return {
      nextPage
    }
  }
})
</script>

<style>

</style>